package com.example.barcodeapp.persenter;

import com.example.barcodeapp.base.BasePersenter;
import com.example.barcodeapp.common.CommonSubscriber;
import com.example.barcodeapp.interfaces.own.IOwn;
import com.example.barcodeapp.model.HttpManager;
import com.example.barcodeapp.ui.wode.bean.WoDHuoDong;
import com.example.barcodeapp.ui.wode.bean.erweimaBean;
import com.example.barcodeapp.utils.RxUtils;

public class OnePresenterErWeiMa extends BasePersenter<IOwn.Viewerweima> implements IOwn.Persentererweima {


    @Override
    public void geteriweima(int page,int id) {
        addSubscribe(HttpManager.getInstance().getOwnTpApi().geterweima(page,id)
                .compose(RxUtils.rxScheduler())
                .subscribeWith(new CommonSubscriber<erweimaBean>(mView) {
                    @Override
                    public void onNext(erweimaBean hanFuDaBean) {
                        mView.geteriweima(hanFuDaBean);
                    }
                }));
    }
}
